package com.md.lalala;

import java.util.Scanner;

public class Demo7 {
	public static void main(String[] args) {
		int a = 19;
		int b = 28;
		int c = 37;
		int d = 46;
		int e = 50;
		Scanner scanner = new Scanner(System.in);
		char ch = scanner.next().charAt(0);
		switch (ch) {
		case 'a':
			System.out.println(a);
			break;
		case 'b':
			System.out.println(b);
			break;
		case 'c':
			System.out.println(c);
			break;
		case 'd':
			System.out.println(d);
			break;
		case 'e':
			System.out.println(e);
			break;
			
		}
	}
}
